package com.hyh.admin.domain.resources;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.hyh.ad.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(value = "ResourcesCollect对象", description = "资源收藏实体类")
public class ResourcesCollect extends BaseEntity implements Serializable {


    /*
     * 资源收藏id
     */
    @ApiModelProperty(value = "资源收藏id" )
    @JsonSerialize(using = ToStringSerializer.class) // 防止前端精度丢失

    private String id;


    /*
     * 用户id
     */
    @ApiModelProperty(value = "用户id" )
    @JsonSerialize(using = ToStringSerializer.class) // 防止前端精度丢失

    private Long userId;


    /*
     * 资源id
     */
    @ApiModelProperty(value = "资源id" )
    @JsonSerialize(using = ToStringSerializer.class) // 防止前端精度丢失

    private Long resourcesId;
}
